package com.merry.spring5.diRef;

import java.util.List;
import java.util.Map;

public class Dept {
    private String deptName;

    private List<Emp> empList;

    private Map<String,Emp> testEmpMap;

    public Map<String, Emp> getTestEmpMap() {
        return testEmpMap;
    }

    public void setTestEmpMap(Map<String, Emp> testEmpMap) {
        this.testEmpMap = testEmpMap;
    }

    public List<Emp> getEmpList() {
        return empList;
    }

    public void setEmpList(List<Emp> empList) {
        this.empList = empList;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public void info(){
        System.out.println("dept: "+deptName);
        for (Emp emp : empList) {
            System.out.println(emp.getEmpName());
        }
    }
}
